package me.zhujin.java.learnjava.myserver.enums;

/**
 * Created by zhujin on 10/24/16.
 * blog:www.zhujin.me
 * email: zhujin.nova@gmail.com
 */
public enum HttpMethod {
    POST,
    GET,
    DEFAULT;

    public static HttpMethod parseStr(String method){
        if (method.equals("GET")){
            return GET;
        }else if (method.equals("POST")){
            return POST;
        }else {
            return  DEFAULT;
        }
    }
}
